<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>

    </style>
</head>
<body>

</body>
<script>
    function getData(data) {
        console.log(data);
    }
    craetes();
    function craetes() {
        var script=document.createElement('script');
        script.src='http://web03.cn/php/jsonp/php2.php?jsonp=getData';
        document.body.appendChild(script);
    }
</script>
</html>
















